<%= error_messages_for :user %>
<% form_for :user, :url => user_path do |f| -%>
<p><label for="login">Login</label><br/>
<%= f.text_field :login %></p>

<p><label for="email">Email</label><br/>
<%= f.text_field :email %></p>

<p><label for="password">Password</label><br/>
<%= f.password_field :password %></p>

<p><label for="password_confirmation">Confirm Password</label><br/>
<%= f.password_field :password_confirmation %></p>
<% Source.find(:all).each do |s| %>
  <p>
 
  <br/>
    <%= text_field( "source_user", "#{s.name}") %>
    <%= label(s.name.to_sym, :user, "#{s.name} User") %><br/>
    <%= text_field( "source_pass", "#{s.name}") %>
    <%= label(s.name.to_sym, :pass, "#{s.name} Password") %></p>
<% end %>  

<p><%= submit_tag 'Sign up' %></p>
<% end -%>
